package API.BigNumbers.BigDecimal;

import java.math.BigDecimal;
import java.math.RoundingMode;

public class Basis {
    public static void main(String[] args) {
        BigDecimal decimal1 = new BigDecimal("0.8126");
        System.out.println(decimal1);
        BigDecimal decimal2 = BigDecimal.valueOf(2);
        System.out.println(decimal1.divide(decimal2));
        System.out.println(decimal1.divide(decimal2, 3, RoundingMode.UP));
        System.out.println(decimal1.divide(decimal2, 3, RoundingMode.DOWN));
    }
}
